<?php $this->render("header.php");?>
<div class="list_box">
   <div class="list_bor">
    <div class="site_nav w_980">
        你现在的位置：<a href="<?php echo $this->baseUrl;?>/" title="首页">首页</a> &gt; <span class="c_ora_red">出版物</span>
    </div>
	<div class="w_986">
        <div class="list_sider f_l">
        	<h2 class="h2_title list_plate_bg f_family f_normal"><span class="more"></span>出版物</h2>
            <div class="content list_plate_bg">
            	<ul class="list_sid_nav">
            	
            	<?php foreach($this->types as $v){
            	$name = $v['name'];
            	$v_url = $this->url($this->baseUrl, "publication", "list", "typeid=" . $v['id']);
            	if ($this->typeid==$v['id'])
            		$selected = ' class="selected" ';
            	else
            		$selected = "";
            	print <<<EOT
                	<li><a $selected href="$v_url" title="$name"><i class="icon_a icon_all"></i>$name</a></li>
EOT;
}?>
                </ul>
            	<div class="clear"></div>
            </div>
            <div class="list_sider_bot list_plate_bg"></div>
        </div>
        <div class="list_main f_r">
        	<div class="list_plate_bg main_top"></div>
            <div class="content list_plate_bg">
            	<div class="list_content">
                    <div class="list_public_content">
                    	<ul class="ul_public_list link_deep_red">
                    	<?php 
                    	foreach($this->list as $v){
		                    $v_title = htmlspecialchars($v['name']);
		                	$v_url = $this->url($this->baseUrl, "publication", "detail", "pid=" . $v['pid']);
		                	$v_image = $this->baseUrl . $v['image'];
                    		print <<<EOT
                        	<li class="li_pub"><a href="{$v_url}" title="{$v_title}" target="_self"><img src="{$v_image}" width="130" height="184" alt="{$v_title}" />{$v_title}</a></li>
EOT;
 }
?>
                        </ul>
                    	<div class="clear"></div>
                        
                        <div class="list_page_box">
                            <div class="list_page f_r">

<?php
$ext = '&typeid=' . $this->typeid;
$indexurl =$this->url($this->baseUrl,'', '', 'nowp=1' . $ext);
$lasturl = $this->url($this->baseUrl, '', '', 'nowp=' . $this->page['totalpage'] . $ext);

print <<<EOT
<a href="{$indexurl}" title="1"><i>&lt;&lt;</i>第一页</a>
EOT;
foreach ($this->pagenum as $v) {
    $url =$this->url($this->baseUrl, $this->cname, 'list', 'nowp=' . $v . $ext);
    if ($v != $this->page['nowp'])
        echo '<a href="' . $url . '" title="' . $v . '">' . $v . '</a>';
    else
        echo '<span class="selected">' . $v . '</span>';
}
print <<<EOT
<a href="{$lasturl}" title="{$this->page['totalpage']}">末 页<i>&gt;&gt;</i></a>
EOT;
?>
                            </div>
                            <div class="clear"></div>
                        </div>
                    </div>
                </div>
                
            	<div class="clear"></div>
            </div>
            <div class="list_plate_bg main_bot"></div>
        </div>
        <div class="clear"></div>
    </div>
  </div>

</div>
<?php $this->render("footer.php");?>
</body>
</html>